import axios from "@/utils/request";

export const getcomments = (id,pageindex) => {
  return axios({
    url: `/api/getcomments/${id}?pageindex=${pageindex}`,
  });
}


export const postcomments = (id, data) => {
  return axios({
    method: 'post',
    url: `/api/postcomment/${id}`,
    data: "content=" + data.content  // 查询参数字符串  ?id=11&name=12
  });
}